const enum Direction {
    Up = 'Up',
    Down = 'Down',
    Left = 'Left',
    Right = 'Right',
}
const val = 'Up'
if(val === Direction.Up){
    console.log('go up');
}
